<!DOCTYPE html>
<html lang="en">
<head>
    <!-- 加载 static 模板标签库 -->
    {% load static %}
    <meta charset="UTF-8">
    <title>{{ question.question_text }} Results</title>
    <link rel="stylesheet" href="{% static 'css/styles.css' %}">
</head>
<body>
    <h1>{{ question.question_text }}</h1>
    <ul>
        {% for choice in question.choice_set.all %}
        <li>{{ choice.choice_text }} -- {{ choice.votes }} vote{{ choice.votes|pluralize }}</li>
        {% endfor %}
    </ul>
    <a href="{% url 'polls:detail' question.id %}">重新投票</a>
    <a href="{% url 'polls:index' %}" class="back-link">返回列表</a>
</body>
</html>